/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entity;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.OneToOne;

/**
 *
 * @author Dell
 */
@Entity
public class FnBIOTREntity extends IOTREntity implements Serializable {
    private static long serialVersionUID = 1L;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public static void setSerialVersionUID(long aSerialVersionUID) {
        serialVersionUID = aSerialVersionUID;
    }

    private double depositPercentCharge;
    private double changeFee;
    private double showPercentCharge;
    private double noShowPercentCharge;
    private double eatingTime;
    @OneToOne(mappedBy="fnBIOTR")
    private FnBBranchEntity fnBBranch;
    
    public FnBIOTREntity() {        
    }
    
    public FnBIOTREntity(FnBIOTREntity fnBIOTR) {
        this.changeFee = fnBIOTR.changeFee;
        this.depositPercentCharge = fnBIOTR.changeFee;
        this.eatingTime = fnBIOTR.eatingTime;
        this.noShowPercentCharge = fnBIOTR.noShowPercentCharge;
        this.showPercentCharge = fnBIOTR.showPercentCharge;
        this.setAutoConfirm(fnBIOTR.isAutoConfirm());
        this.setPercentManualConfirm(fnBIOTR.getPercentManualConfirm());
    }

    public double getDepositPercentCharge() {
        return depositPercentCharge;
    }

    public void setDepositPercentCharge(double depositPercentCharge) {
        this.depositPercentCharge = depositPercentCharge;
    }

    public double getChangeFee() {
        return changeFee;
    }

    public void setChangeFee(double changeFee) {
        this.changeFee = changeFee;
    }

    public double getShowPercentCharge() {
        return showPercentCharge;
    }

    public void setShowPercentCharge(double showPercentCharge) {
        this.showPercentCharge = showPercentCharge;
    }

    public double getNoShowPercentCharge() {
        return noShowPercentCharge;
    }

    public void setNoShowPercentCharge(double noShowPercentCharge) {
        this.noShowPercentCharge = noShowPercentCharge;
    }

    public double getEatingTime() {
        return eatingTime;
    }

    public void setEatingTime(double eatingTime) {
        this.eatingTime = eatingTime;
    }

    public FnBBranchEntity getFnBBranch() {
        return fnBBranch;
    }

    public void setFnBBranch(FnBBranchEntity fnBBranch) {
        this.fnBBranch = fnBBranch;
    }            
}
